<?php if(!$this->user_id):?>
    <div class="grid_12 t_a_bottom"><?php echo $this->translator('customer_widget_not_user_id')?></div>
<?php else:?>
<!--Cutomer info-->
<?php
    /**
    * Customer view
    **/
    $customer = $this->customer;
?>
<?php if(!$customer):?>
    <div class="grid_12 t_a_bottom"><?php echo $this->translator('customer_widget_not_user')?></div>
<?php else:?>
<div class="grid_12 t_a_bottom">
    <div class="prefix_1 suffix_1">
        <div class="clearfix t_a_bottom">
            <?php if($this->allow('view-billing', 'assignment', 'assignment')):?>
            <div class="grid_5 alpha">
                <div class="grid_4">
                    <b><?php echo $this->translator()->widget('customer_billing_info');?></b>
                    <hr />
                </div>

                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_name'); ?>:</label>
                    <span><?php echo (trim($customer->full_name))?$customer->full_name:$customer->user_name;?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_address'); ?>:</label>
                    <span><?php echo (trim($customer->customer_address))?$customer->customer_address:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_email'); ?>:</label>
                    <span><?php echo (trim($customer->email))?$customer->email:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_tel'); ?>:</label>
                    <span><?php echo (trim($customer->customer_tel))?$customer->customer_tel:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_city'); ?>:</label>
                    <span><?php echo (trim($customer->customer_city))?$customer->customer_city:'-';?></span>
                </div>
            </div>
            <?php endif;?>
            <?php if($this->allow('view-shipping', 'assignment', 'assignment')):?>
            <div class="grid_5 omega">
                <div class="grid_4">
                    <b><?php echo $this->translator()->widget('customer_shipping_info');?></b>
                    <hr />
                </div>

                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_name'); ?>:</label>
                    <span><?php echo (trim($customer->shipping_name))?$customer->shipping_name:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_address'); ?>:</label>
                    <span><?php echo (trim($customer->customer_address))?$customer->shipping_address:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_email'); ?>:</label>
                    <span><?php echo (trim($customer->shipping_email))?$customer->shipping_email:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_tel'); ?>:</label>
                    <span><?php echo (trim($customer->shipping_tel))?$customer->shipping_tel:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('customer_customer_city'); ?>:</label>
                    <span><?php echo (trim($customer->shipping_city))?$customer->shipping_city:'-';?></span>
                </div>
            </div>
            <?php endif;?>
        </div>
    </div>
 </div>
 <?php endif;?>

<!--Enterprise info-->
<?php
    /**
    * Enterprise view
    **/
    $enterprise = $this->enterprise;
?>
<?php if($enterprise):?>
<div class="grid_12">
    <div class="t_a_ui_helper_line">
        <h3><?php echo $this->translator()->widget('assignment_view_enterprise_guide');?></h3>
    </div>
</div>
<div class="grid_12 t_a_bottom">
    <div class="prefix_1 suffix_1">
        <div class="clearfix t_a_bottom">
            <div class="grid_5 alpha">
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_company_name_vn'); ?>:</label>
                    <span><?php echo (trim($enterprise->company_name_vn))?$enterprise->company_name_vn:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_company_name_en'); ?>:</label>
                    <span><?php echo (trim($enterprise->company_name_en))?$enterprise->company_name_en:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_contact_address'); ?>:</label>
                    <span><?php echo (trim($enterprise->contact_address))?$enterprise->contact_address:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_contact_email'); ?>:</label>
                    <span><?php echo (trim($enterprise->contact_email))?$enterprise->contact_email:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_contact_tel'); ?>:</label>
                    <span><?php echo (trim($enterprise->contact_tel))?$enterprise->contact_tel:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_contact_fax'); ?>:</label>
                    <span><?php echo (trim($enterprise->contact_fax))?$enterprise->contact_fax:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_registration_number'); ?>:</label>
                    <span><?php echo (trim($enterprise->registration_number))?$enterprise->registration_number:'-';?></span>
                </div>
            </div>

            <div class="grid_5 omega">
                <div class="grid_4">
                    <b><?php echo $this->translator()->widget('enterprise_account');?> VND</b>
                    <hr />
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_name'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_name_vnd))?$enterprise->bank_name_vnd:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_account'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_account_vnd))?$enterprise->bank_account_vnd:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_account_owner'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_account_owner_vnd))?$enterprise->bank_account_owner_vnd:'-';?></span>
                </div>
                <div class="grid_4">&nbsp;</div>
                <div class="grid_4">
                    <b><?php echo $this->translator()->widget('enterprise_account');?> USD</b>
                    <hr />
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_name'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_name_usd))?$enterprise->bank_name_usd:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_account'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_account_usd))?$enterprise->bank_account_usd:'-';?></span>
                </div>
                <div class="grid_5">
                    <label><?php echo $this->translator()->widget('enterprise_bank_account_owner'); ?>:</label>
                    <span><?php echo (trim($enterprise->bank_account_owner_usd))?$enterprise->bank_account_owner_usd:'-';?></span>
                </div>
            </div>
        </div>
    </div>
 </div>
 <?php endif;?>

 <?php endif;?>